import { ref } from 'vue'
import { defineStore } from 'pinia'
import {getcategoryApi} from "@/apis/getcategory.js";

export const useCategoryStore = defineStore('category', () => {
    const list = ref([])
    const getcategory = async () => {
        const p = await getcategoryApi()
        list.value  = p.data.result
    }

    return { list , getcategory }
})
